﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace RBS.Web.Hotel.Models
{
    /// <summary>
    /// 菜谱种类ViewModel
    /// </summary>
    public class CookBookSpeciesViewModel
    {
        public Int32 ID { get; set; }
        public String Code { get; set; }
        public String Name { get; set; }

        #region Ctors

        public CookBookSpeciesViewModel()
        {
            
        }

        public CookBookSpeciesViewModel(Int32 _id, String _code, String _name) {
            ID = _id;
            Code = _code;
            Name = _name;
        }

        #endregion

    }

    /// <summary>
    /// 菜系
    /// </summary>
    public class CookBookCaiXiViewModel {

        public Int32 ID { get; set; }
        public String Code { get; set; }
        public String Name { get; set; }

        public IList<CookBookCaiXiViewModel> Childs { get; set; }

        #region Ctors

        public CookBookCaiXiViewModel() {
            Childs = new List<CookBookCaiXiViewModel>();
        }

        public CookBookCaiXiViewModel(Int32 _id, String _code, String _name)
            : this()
        {
            ID = _id;
            Code = _code;
            Name = _name;
        }

        #endregion

    }

    /// <summary>
    /// 菜谱单位ViewModel
    /// </summary>
    public class CookBookUnitViewModel
    {
        public Int32 ID { get; set; }
        public String Code { get; set; }
        public String Name { get; set; }

        #region Ctors

        public CookBookUnitViewModel() { 
            
        }

        public CookBookUnitViewModel(Int32 _id, String _code, String _name)
        {
            ID = _id;
            Code = _code;
            Name = _name;
        }

        #endregion

    }
}